package com.example.mymvvmdemo.entity;

import java.util.List;

public class FailEntity {

    public int code;
    public String message;
    public DataDTO data;

    @Override
    public String toString() {
        return "RegisterEntity{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public static class DataDTO {
        public MessageDTO message;

        @Override
        public String toString() {
            return "DataDTO{" +
                    "message=" + message +
                    '}';
        }

        public MessageDTO getMessage() {
            return message;
        }

        public void setMessage(MessageDTO message) {
            this.message = message;
        }

        public static class MessageDTO {
            public List<String> messages;

            @Override
            public String toString() {
                return "MessageDTO{" +
                        "messages=" + messages +
                        '}';
            }

            public List<String> getMessages() {
                return messages;
            }

            public void setMessages(List<String> messages) {
                this.messages = messages;
            }
        }
    }
}
